﻿using System.Windows.Forms;

namespace DocumentManager.Extensions
{
	public static class ComboBoxEx
	{
		public static void Clear(this ComboBox comboBox)
		{
			if (comboBox == null) return;

			comboBox.DataSource = null;
			comboBox.SelectedItem = null;
			comboBox.Text = string.Empty;
		}
	}
}
